package cn.com.spic.demo.po;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.yonyou.iuap.baseservice.entity.MainBusinessObjectCode;
import com.yonyou.iuap.ucf.dao.BasePO;

import javax.persistence.Column;
import javax.persistence.Table;

@Table(name = "organization")
@JsonIgnoreProperties(ignoreUnknown = true)
public class OrganizationPO extends BasePO implements MainBusinessObjectCode {
    private static final long serialVersionUID = -5130629405605837919L;
    @Column(name = "CODE")
    private String code;
    @Column(name = "NAME")
    private String name;
    @Column(name = "PARENT_ORG_CODE")
    private String parentOrgCode;
    @Column(name = "CONTACT")
    private String contact;
    @Column(name = "CONTACT_NUMBER")
    private String contactNumber;
    @Column(name = "ESTABLISH_TIME")
    private String estableishTime;
    @Column(name = "INDUSTRIAL")
    private String industrial;
    @Column(name = "NATURE")
    private String nature;
    @Column(name = "REGION")
    private String region;
    @Column(name = "PLACE")
    private String place;
    @Column(name = "ADDRESS")
    private String address;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentOrgCode() {
        return parentOrgCode;
    }

    public void setParentOrgCode(String parentOrgCode) {
        this.parentOrgCode = parentOrgCode;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public String getEstableishTime() {
        return estableishTime;
    }

    public void setEstableishTime(String estableishTime) {
        this.estableishTime = estableishTime;
    }

    public String getIndustrial() {
        return industrial;
    }

    public void setIndustrial(String industrial) {
        this.industrial = industrial;
    }

    public String getNature() {
        return nature;
    }

    public void setNature(String nature) {
        this.nature = nature;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String getMainBoCode() {
        return this.getClass().getSimpleName().replace("PO", "");
    }
}
